<template>
	<view>
		<view class="u-m-b-20 box-color box-padding">
			<view class="u-m-b-30">
				商品详情
			</view>
			<view class="u-text-center">
				<view class="u-flex" style="border: 1px solid #CCCCCC; border-bottom: none;">
					<view class="table-left-box">产地</view>
					<view class="table-right-box">{{ product.placeOfOrigin }}</view>
				</view>
				<view class="u-flex" style="border: 1px solid #CCCCCC; border-bottom: none;">
					<view class="table-left-box">原料</view>
					<view class="table-right-box">{{ product.rawMaterial }}</view>
				</view>
				<view class="u-flex" style="border: 1px solid #CCCCCC;">
					<view class="table-left-box">商品介绍</view>
					<view class="table-right-box">{{ product.remarks }}
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			product: {
				type: Object,
				default: {}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.table-left-box {
		// padding: 22rpx 0;
		// border-right: 1px solid #333333;
		// flex-basis: 160rpx;
		min-width: 160rpx;
	}
	.table-right-box {
		flex-grow: 1;
		border-left: 1px solid #cccccc;
		padding: 22rpx 36rpx;
	}
	::v-deep .u-border {
		border: 1px solid #333333;
	}
</style>
